package com.caishi.lkx.exam.service;

import com.caishi.lkx.exam.model.PaperRuleModel;
import com.caishi.lkx.exam.vo.SpecialConditionVo;
import com.zzw.common.entity.BaseService;


import java.util.List;

/**
 * @author by Janisa
 * @Description:
 * @date 2022/3/7 16:32
 */
public interface IPaperRuleService extends BaseService<PaperRuleModel, String> {

    /**
     * 获取科目的组卷记录
     * @param categoryId
     * @return
     */
    PaperRuleModel getCategoryRule(Long categoryId);

    /**
     * 将规则转换为组合规则
     * @param model
     * @return
     */
    List<SpecialConditionVo.TY> rule2vo(PaperRuleModel model);


}
